﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class t_PlcAddr : ModelBase
    {
        private int _ID;
        private string _NO = "";
        private string _Name = "";
        private string _Address = "";
        private string _Note = "";
    
        private string _plcNo;
        private int _AddrValue;
        private DateTime _dateTimeSpan = DateTime.Now;
      
        private bool _isPara;


        public int ID { get => _ID; set => Set(ref _ID, value); }


        /// <summary>
        /// 编号
        /// </summary>

        public string NO { get => _NO; set => Set(ref _NO, value); }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get => _Name; set => Set(ref _Name, value); }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get => _Address; set => Set(ref _Address, value); }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get => _Note; set => Set(ref _Note, value); }

        /// <summary>
        /// 地址读取值
        /// </summary>
        public int AddrValue { get => _AddrValue; set => Set(ref _AddrValue, value); }

        /// <summary>
        /// 对应PLC的NO
        /// </summary>
        public string PlcNo { get => _plcNo; set => Set(ref _plcNo, value); }

        public DateTime time_stamp { get => _dateTimeSpan; set => Set(ref _dateTimeSpan, value); }
        /// <summary>
        /// 是否是参数，是参数不参与轮询，不是参数，参与轮询
        /// </summary>
        public bool IsPara
        {
            get => _isPara;
            set => Set(ref _isPara, value);
        }

        /// <summary>
        /// 是否启用
        /// </summary>

      
    }
}
